import request from '@/utils/request'
/**
 * 获取所有员工列表
 * @param {*} params
 * @returns
 */
export function getEmployees(params) {
  return request({
    url: '/sys/user',
    method: 'get',
    params
  })
}
/**
 * 根据id删除员工
 * @param {*} id
 * @returns
 */
export function deleteEmployee(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}
/**
 * 新增员工
 * @param {*} data
 * @returns
 */
export function addEmployee(data) {
  return request({
    url: '/sys/user',
    method: 'POST',
    data
  })
}

/**
 * 批量导入员工
 * @param {*} data
 * @returns
 */
export function importEmployees(data) {
  return request({
    url: '/sys/user/batch',
    method: 'POST',
    data
  })
}

